#!/bin/bash
instance=${1:-1}
readonly EXAMPLE_DIR=examples
readonly SERIAL_DEVICE=/dev/ttyCH9344USB

cd ./$EXAMPLE_DIR

for ((i=0; i<instance; i++)); do
    python3 land.py -c $SERIAL_DEVICE$i -s $((i+1)) &
    # echo "python3 takeoff.py -c $SERIAL_DEVICE$i -s $((i+1))" &
done

